#ifndef __LINKLIST_H_
#define __LINKLIST_H_

#define MAXSIZE 1000 //图书表可能达到的最大长度
#define LOGGED 1
#define LOGGING 0
#define SUCCESS 1
#define FAIL    0

typedef struct Book//图书信息定义
{
	char id[20]; //图书 ISBN
	char name[50]; //图书名字
	float price; //图书价格
	struct Book* next;
}Book_t;

int BookLog(char* id, char* name, float* price);
Book_t* Book_Create(Book_t* input, int* count);
void Book_View(Book_t* Head, int* BookNum);
void Book_Change(Book_t* Head, int* BookNum, void (*View)(Book_t*, int*));
void Book_Find(Book_t* Head);
int Book_Insert(Book_t* Head, int* BookNum);
int Book_Delete(Book_t* Head, int* BookNum);
void Book_Derepeate(Book_t* Head, int* BookNum);


#endif // !__LINKLIST_H_

